package cn.tdeu.sp02.service;

import cn.tedu.sp01.entity.Item;
import cn.tedu.sp01.service.ItemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Slf4j
@Service
public class ItemServiceImpl implements ItemService {
    @Override
    public List<Item> getItems(String OrderId) {
        List<Item> list = new ArrayList<>();
        list.add(new Item(1,"迪迦一比一模型",2));
        list.add(new Item(2,"米格07",4));
        list.add(new Item(3,"砂土",6));
        list.add(new Item(4,"三十分",8));
        list.add(new Item(5,"篮球",10));
        return list;
    }

    @Override
    public void decreaseNumber(List<Item> items) {
        for (Item item:items) {
           log.info("SFQF QESFRASFC",item);
        }
    }
}
